package com.atguigu.guli.service.trade.feign;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.trade.feign.impl.EduCourseServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Miluo
 * @description Edu远程调用
 **/
@Service
@FeignClient(value = "service-edu",fallback = EduCourseServiceImpl.class)
public interface EduCourseService {
    @GetMapping("/api/edu/course/get-course-dto/{courseId}")
    R getCourseDtoById(@PathVariable(value = "courseId") String courseId);
}
